package com.supermap.desktop.develop.workspacemigration.ctrlaction;

import com.supermap.desktop.core.Interface.IBaseItem;
import com.supermap.desktop.core.implement.CtrlAction;
import com.supermap.desktop.develop.workspacemigration.ui.WorkspaceMigrationDialog;

/**
 * @author SuperMap
 */
public class CtrlActionMigrateWorkspace extends CtrlAction {

	public CtrlActionMigrateWorkspace(IBaseItem caller) {
		super(caller);
	}

	@Override
	public void run() {
		WorkspaceMigrationDialog workspaceMigrationDialog = new WorkspaceMigrationDialog();
		workspaceMigrationDialog.showDialog();
		workspaceMigrationDialog.dispose();
	}

	@Override
	public boolean enable() {
		return true;
	}

	@Override
	public boolean check() {
		return super.check();
	}
}
